-
-
Notifications
You must be signed in to change notification settings - Fork 158
✨ Pass-through timeout options to net-ldap #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #106 +/- ##
==========================================
- Coverage 97.33% 96.79% -0.54%
==========================================
Files 4 4
Lines 300 312 +12
Branches 106 116 +10
==========================================
+ Hits 292 302 +10
- Misses 8 10 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds timeout configuration support for LDAP connections by introducing connect_timeout and read_timeout options that are forwarded to the underlying Net::LDAP connection.
Key changes:
- Added timeout configuration options (
connect_timeoutandread_timeout) to the strategy and adaptor - Implemented backward-compatible timeout setting logic that uses setters if available, otherwise falls back to instance variable assignment
- Added test coverage for timeout configuration behavior
- Updated documentation with examples and descriptions of the new timeout options
Reviewed Changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| lib/omniauth/strategies/ldap.rb | Adds connect_timeout and read_timeout strategy options |
| lib/omniauth-ldap/adaptor.rb | Implements timeout setting logic with backward compatibility for older net-ldap versions |
| spec/omniauth-ldap/adaptor_spec.rb | Adds test coverage for timeout configuration scenarios |
| README.md | Documents the new timeout options with examples and fixes link references |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- connect_timeout - read_timeout
Implements and closes #63